/*
 * Copyright (c) 2024-2025 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION!

import { int32, int64, float32 } from "@koalaui/common"
import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop"
import { NodeAttach, remember } from "@koalaui/runtime"
import { Dimension, Margin, ConstraintSizeOptions, Length } from "./ArkUnitsInterfaces"
import { CustomBuilder, ScrollableCommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces"
import { Scroller } from "./ArkScrollerMaterialized"
import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized"
import { FlexDirection } from "./ArkEnumsInterfaces"
import { Resource } from "./ArkResourceInterfaces"
import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./SyntheticDeclarations"
import { ScrollState } from "./ArkListInterfaces"
export type GetItemMainSizeByIndex = (index: number) => number;
export interface SectionOptions {
    itemsCount: number;
    crossCount?: number;
    onGetItemMainSizeByIndex?: GetItemMainSizeByIndex;
    columnsGap?: Dimension;
    rowsGap?: Dimension;
    margin?: Margin | Dimension;
}
export enum WaterFlowLayoutMode {
    ALWAYS_TOP_DOWN = 0,
    SLIDING_WINDOW = 1
}
export interface WaterFlowOptions {
    footer?: CustomBuilder;
    scroller?: Scroller;
    sections?: WaterFlowSections;
    layoutMode?: WaterFlowLayoutMode;
}
export type WaterFlowInterface = (options?: WaterFlowOptions) => WaterFlowAttribute;
export interface WaterFlowAttribute extends ScrollableCommonMethod<WaterFlowAttribute> {
    columnsTemplate: string;
    itemConstraintSize: ConstraintSizeOptions;
    rowsTemplate: string;
    columnsGap: Length;
    rowsGap: Length;
    layoutDirection: FlexDirection;
    nestedScroll: NestedScrollOptions;
    enableScrollInteraction: boolean;
    friction: number | Resource;
    cachedCount: number;
    onReachStart: (() => void);
    onReachEnd: (() => void);
    onScrollFrameBegin: ((offset: number,state: ScrollState) => Literal_Number_offsetRemain);
    onScrollIndex: ((first: number,last: number) => void);

}
